﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Core/MP.Master" AutoEventWireup="true"
    CodeBehind="EquipmentTypes.aspx.cs" Inherits="PhotoHsn.Web.Admin.Equipment.EquipmentTypes" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script>
        $(function () {
            // a workaround for a flaw in the demo system (http://dev.jqueryui.com/ticket/4375), ignore!


            $("#dialog-confirm").dialog({
                resizable: false,
                height: 140,
                autoOpen: false,
                modal: true,
                buttons: {
                    "Sil": function () {
                        $(".deleted").click();
                    },
                    "Iptal": function () {
                        $(this).dialog("close");
                    }
                }
            });

            $(".deleted").click(function () {
                $("#dialog-confirm").dialog("open");
                return false;
            });
        });
	</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="dialog-confirm" title="Empty the recycle bin?">
        <p>
            <span class="ui-icon ui-icon-alert" style="float: left; margin: 0 7px 20px 0;"></span>
            These items will be permanently deleted and cannot be recovered. Are you sure?</p>
    </div>
    <asp:LinkButton ID="lbtnNew" runat="server" OnClick="lbtnNew_Click">Yeni Kayıt</asp:LinkButton>
    <asp:GridView ID="gwEquipmentTypes" runat="server" AllowSorting="True" AutoGenerateColumns="False"
        OnRowCommand="gwEquipmentTypes_RowCommand" DataKeyNames="Id" OnSelectedIndexChanging="gwEquipmentTypes_SelectedIndexChanging">
        <Columns>
            <asp:CommandField SelectText="Güncelle" ShowSelectButton="True" />
            <asp:TemplateField ShowHeader="False">
                <ItemTemplate>
                    <asp:LinkButton ID="lbtnDeleted" runat="server" CssClass="deleted" CausesValidation="false"
                        CommandName="Deleted" CommandArgument='<%Eval("Id")%>' Text="Sil"></asp:LinkButton>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="EquipmentType" HeaderText="EquipmentType" />
            <asp:BoundField DataField="IsActive" HeaderText="IsActive" />
            <asp:BoundField DataField="IsDeleted" HeaderText="IsDeleted" />
            <asp:TemplateField ShowHeader="False">
                <ItemTemplate>
                    <asp:LinkButton ID="lbtnNewBrands" runat="server" CausesValidation="false" CommandName="Brands"
                        CommandArgument='<%Eval("Id")%>' Text="Brands"></asp:LinkButton>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <table id="tblEquipment" runat="server" visible="false" cellpadding="0" cellspacing="0"
        class="style1">
        <tr>
            <td>
                EquipmentType
            </td>
            <td>
                <asp:TextBox ID="txtEquipmentType" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                IsActive
            </td>
            <td>
                <asp:CheckBox ID="cbxIsActive" runat="server" Checked="True" />
            </td>
        </tr>
        <tr>
            <td>
                IsDeleted
            </td>
            <td>
                <asp:CheckBox ID="cbxIsDeleted" runat="server" Enabled="False" />
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;
            </td>
            <td>
                <asp:LinkButton ID="lbtnSave" runat="server" OnClick="lbtnSave_Click">Kaydet</asp:LinkButton>
            </td>
        </tr>
    </table>
</asp:Content>
